//
//  RNOLUpdatePayPasswordViewController.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/19.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLUpdatePayPasswordViewController.h"
#import "RNOLUpdatePayPasswordView.h"
#import "RNOLSettingPayPasswordViewController.h"

@interface RNOLUpdatePayPasswordViewController ()

@property (nonatomic,strong) RNOLUpdatePayPasswordView *updatePasswordView;

@end

@implementation RNOLUpdatePayPasswordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kBgColor;
    [self setupNavBarTitleViewWithText:@"修改支付密码"];
    [self setup];
}


- (void)setup{
    RNOLUpdatePayPasswordView *updateView = [[RNOLUpdatePayPasswordView alloc] initWithFrame: self.view.bounds];
    [self.view addSubview: updateView];
    self.updatePasswordView = updateView;
    
    [updateView setGetCodeBlock:^(UIButton *button) {
        
        
    }];
    
    [updateView setNextBlock:^{
        [self.view endEditing:YES];
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            RNOLSettingPayPasswordViewController *setPasswordVC = [[RNOLSettingPayPasswordViewController alloc] init];
            [self.navigationController pushViewController: setPasswordVC animated:YES];
        });
    }];
    
}



@end
